package dreamtwodancetiktokenumsmymongo

const (
	DanceSystemAutonomy     = 1 //系统自动
	DanceBackstageOperation = 2 //后台操作
)

type DanceRelationEnums struct {
}

var DanceRelationEnumsObject DanceRelationEnums

func (e DanceRelationEnums) SourceType() []int {
	return []int{
		DanceSystemAutonomy,
		DanceBackstageOperation,
	}
}

func (e DanceRelationEnums) SourceMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.SourceType() {
		m[s] = e.SourceString(s)
	}
	return m
}

func (e DanceRelationEnums) SourceString(tag int) string {
	switch tag {
	case DanceSystemAutonomy:
		return "系统自动"
	case DanceBackstageOperation:
		return "后台操作"
	default:
		return "其他"
	}
}
